package com.mininglamp.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

import lombok.Data;
import lombok.ToString;


@Data
@ToString
@Entity
@Table(name="goods")
public class Goods {

	@Id
	@Column(name = "id", nullable = true)
	@GenericGenerator(name = "idGenerator", strategy = "uuid") // 这个是hibernate的注解/生成32位UUID
	@GeneratedValue(generator = "idGenerator")
	private String id;
	
	@Column(name = "wetchat_id", nullable = true)
	private String wetchatId;
	
	@Column(name = "goods_name", nullable = true)
	private String goodsName;
	
	
	@Column(name = "goods_price", nullable = true)
	private String goodsPrice;
	
	
	@Column(name = "goods_type", nullable = true)
	private String goodsType;
}
